#include <QtGui>

#include "pluginwidget.h"
#include "demowidget.h"

PluginWidget::PluginWidget(QWidget *parent): QObject(parent)
{

}

PluginWidget::~PluginWidget()
{

}

bool PluginWidget::CreateWidget(QWidget *parent, bool if_edit_mode, QWidget **pwidget, IPluginWidget **piwidget,
                                std::vector<void *> ptr_vect)
{
    DemoWidget *m_pDemoWidget = new DemoWidget(if_edit_mode, ptr_vect, parent);
    *pwidget = (QWidget *)m_pDemoWidget;
    *piwidget = (IPluginWidget *)m_pDemoWidget;
    return true;
}

void PluginWidget::Release()
{

}

Q_EXPORT_PLUGIN2(MyWidget, PluginWidget)
